package com.cardone.security.token.dto;

import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.util.Date;
import java.util.List;

/**
 * Created by Administrator on 2014/11/26.
 */
@Getter
@Setter
@Accessors(chain = true)
public class TokenDto implements java.io.Serializable {
    /**
     * 创建人代码
     */
    @Getter
    @Setter
    @Accessors(chain = true)
    protected String key;

    /**
     * 客户端标识
     */
    @Getter
    @Setter
    @Accessors(chain = true)
    protected String clientId;

    /**
     * sessionId
     */
    @Getter
    @Setter
    @Accessors(chain = true)
    protected String code;

    /**
     * 创建时间
     */
    @Getter
    @Setter
    @Accessors(chain = true)
    protected Date createDate;

    /**
     * 凭证有效时间，单位：秒
     */
    @Getter
    @Setter
    @Accessors(chain = true)
    protected int expiresIn;

    /**
     * 标识
     */
    @Getter
    @Setter
    @Accessors(chain = true)
    protected Object id;

    /**
     * url路址
     */
    @Getter
    @Setter
    @Accessors(chain = true)
    protected String url;
}
